import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    classifyList: [],
    xxdata: {}
  },
  getters: {
  },
  mutations: {
    getclassifyList (state, val) {
      state.classifyList = val
      localStorage.setItem('dichanList', JSON.stringify(val))
    },
    getxxdata (state, val) {
      state.xxdata = val
      localStorage.setItem('xxdata', JSON.stringify(val))
    }
  },
  actions: {
  },
  modules: {
  }
})
